<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS引入</title>
</head>
<body>
<!--内联引入-->
<input type="button" value="按钮" onclick="alert('内联引入')">



<!--内部引入：-->
<script>
    // alert('内部引入')
    console.log('内部引入')
</script>
<!--外部引入-->
<script src="my.js"></script>
</body>
</html>